home *** CD-ROM | disk | FTP | other *** search
/ Trading on the Edge / Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin / mac / Mac_Files / Vendor Demos / HiQ / HiQ_Conversions < prev    next >
Text File  |  1992-04-28  |  5KB  |  253 lines

  1. // HiQ Conversions.
  2. //
  3. // You can define conversions in this file to be used by the unit conversion
  4. // function.  The following is the syntax of this file.
  5. //
  6. // Comments. Anything following '//' is ignored.
  7. //
  8. // Conversions are performed by first converting to a neutral set of units.  SI
  9. //    units are used as the neutral set for the majority of the conversions.  SI 
  10. // units are as follows:
  11. //
  12. //    Name                Abreviation        Type
  13. //    --------------    --------------    --------------------
  14. // meter                m                    Length
  15. //    kilogram            kg                    Mass
  16. //    Second            s                    Time
  17. //    ampere            A                    Current
  18. //    degree Kelvin    K                    Temperature
  19. //    candela            cd                    Luminous Intensity
  20. //
  21. // 
  22. //        Modification History
  23. //
  24. //        Date            Who    Comments                          Function/Method    S[PC]R#
  25. //        ---------    ---    ---------------------------------------------    -------
  26. //         4/18/91        DMP     <1>        first checked in
  27. //
  28. //
  29. //------------------------------------------------------------------------------
  30. Type:    Distance
  31.         Length
  32. Name:    Meters
  33.         m
  34. Conv: * 1.0
  35. Name:    Mils
  36. Conv:    * 0.000025400
  37. Name:    Inches
  38.         in
  39. Conv:    * 0.0254
  40. Name:    Feet
  41.         ft
  42. Conv:    * 0.3048
  43. Name:    Yards
  44.         yd
  45. Conv:    * 0.914399999
  46. Name:    Rods
  47. Conv:    * 5.029200038
  48. Name: Hands
  49. Conv:    * 0.1016
  50. Name:    Cubits
  51. Conv:    * 0.4572045720508
  52. Name:    Chains// (Gunter's)
  53. Conv:    * 20.116800153
  54. //Name: Chains// (Ramden's)
  55. //Conv:    * 31.171253718
  56. Name:    Links// (Gunter's)
  57. Conv:    * 0.201168002
  58. //Name:    Links// (Ramden's)
  59. //Conv:    * 0.304800000
  60. Name: Miles                    // statute
  61.         mi
  62. Conv:    * 1609.344
  63. //"Miles (nautical Brt.)"   1853.184           1 0 0
  64. //"Miles (nautical Int.)"   1852               1 0 0
  65. //"Leagues (nautical Brt.)" 5559.552           1 0 0
  66. //"Leagues (nautical Int.)" 5556               1 0 0
  67. Name:    Leagues// Statute
  68. Conv:    * 4828.032
  69. Name:    Megameters
  70.         Mm
  71. Conv:    * 1000000
  72. Name:    Kilometers
  73.         km
  74. Conv:    * 1000
  75. Name:    Hectometers
  76.         hm
  77. Conv:    * 100
  78. Name:    Dekameters
  79.         dam
  80. Conv:    * 10
  81. Name:    Centimeters
  82.         cm
  83. Conv: * 0.01
  84. Name:    Milimeters
  85.         mm
  86. Conv:    * 0.001
  87. Name:    Microns
  88.         Micrometers
  89. Conv:    * 1.e-6
  90. Name:    Milimicrons
  91.         Nanometers
  92.         nm
  93. Conv:    * 1.e-9
  94. Name:    Angstrom unit
  95.         A
  96. Conv:    * 1.e-10
  97. Name:    Picometers
  98.         pm
  99. Conv:    * 1.e-12
  100. Name:    Furlongs
  101. Conv:    * 201.168
  102. Name:    Fathoms
  103. Conv:    * 1.8288
  104.  
  105. //------------------------------------------------------------------------------
  106. type: Area
  107. Name: m^2
  108. Conv:    * 1
  109. Name: feet^2
  110.         ft^2
  111. Conv: * 0.092903040
  112. Name:    in^2
  113. Conv:    * 6.4516e-4
  114.  
  115. //------------------------------------------------------------------------------
  116. type: Volume
  117. Name:    m^3
  118. Conv:    * 1
  119. Name:    Liter
  120.         l
  121. Conv:    * 1e-3
  122.  
  123. //------------------------------------------------------------------------------
  124. Type:    Velocity
  125.         Speed
  126. Name:    Meters/second
  127.         m/s
  128. Conv:    * 1.0
  129. Name:    Feet/second
  130.         ft/s
  131.         fps
  132. Conv:    * 0.3048
  133. Name:    Inches/second
  134.         in/s
  135.         ips
  136. Conv:    * 0.0254
  137. Name:    Miles/hour
  138.         mi/h
  139.         mph
  140. Conv:    * 0.4470
  141.  
  142. //------------------------------------------------------------------------------
  143. type: Acceleration
  144. Name: m/s^2
  145. Conv:    * 1
  146. Name:    Inches/second^2
  147.         in/s^2
  148. Conv:    * 0.0254
  149. Name: Feet/second^2
  150.         ft/s^2
  151. Conv:    * 0.3048
  152. //------------------------------------------------------------------------------
  153. Type:    Temperature
  154. Name:    Kelvin
  155.         K
  156. Conv: * 1.0
  157. Name:    Fahrenheit
  158.         F
  159. Conv:    + 459.67
  160.         / 1.8
  161. Name:    Celsius
  162.         C
  163.         Centigrade
  164. Conv:    + 273.15
  165. Name:    Rankine
  166.         R
  167. Conv:    / 1.8
  168.  
  169. //------------------------------------------------------------------------------
  170. type: Power
  171. Name:    Watt
  172.         W
  173. Conv:    * 1
  174. Name:    Joules/second
  175.         J/s
  176. Conv:    * 1
  177.  
  178.  
  179. //------------------------------------------------------------------------------
  180. type: Angle
  181. Name:    Radians
  182.         rad
  183. Conv:    * 1
  184.  
  185. //------------------------------------------------------------------------------
  186. type: Angular acceleration
  187. Name:    rad/s^2
  188. Conv:    * 1
  189.  
  190. //------------------------------------------------------------------------------
  191. type: Density
  192. Name:    kg/m^3
  193. Conv:    * 1
  194.  
  195. //------------------------------------------------------------------------------
  196. type: Force
  197. Name:    Newton
  198.         kg*m/s^2
  199. Conv:    * 1
  200.  
  201. //------------------------------------------------------------------------------
  202. type: Frequency
  203.         Angular velocity
  204. Name:    rad/s
  205. Conv:    * 1
  206. Name:    Hertz
  207.         Hz
  208.         Cycles/s
  209. Conv:    * 6.283185307179586476925287
  210.  
  211. //------------------------------------------------------------------------------
  212. type: Impulse
  213. Name:    Newton-second
  214.         N*s
  215. Conv:    * 1
  216. Name:    kg*m/s
  217. Conv:    * 1
  218.  
  219. //------------------------------------------------------------------------------
  220. type: Mass
  221. name:    Kilogram
  222.         kg
  223. Conv:    * 1
  224.  
  225. //------------------------------------------------------------------------------
  226. type: Pressure
  227.         Stress
  228. name:    Pascal
  229.         Pa
  230. Conv:    * 1
  231. name:    N/m^2
  232. Conv:    * 1
  233.  
  234. //------------------------------------------------------------------------------
  235. type: Time
  236. name:    Second
  237.         s
  238. Conv:    * 1
  239.  
  240. //------------------------------------------------------------------------------
  241. type:    Energy
  242.         Work
  243.         Moment of a force
  244. name:    Joule
  245.         J
  246. Conv:    * 1
  247. name:    Newton-meter
  248.         N*m
  249. Conv:    * 1
  250. Name:    ft*lb
  251.         Foot-pounds
  252. Conv:    * 1.35582
  253.